<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ES6 对象的解构</title>
</head>
<body>
<script>
  let abc = {
    name:"abcque",
    age:18,
    gender:"M",
  }

/*  let name = abc.name
  let age = abc.age
  let gender = abc.gender

  console.log(name);
  console.log(age);
  console.log(gender);*/


  // let {name, age, gender } = abc
  let {name, gender, age } = abc
  
  console.log(name);
  console.log(age);
  console.log(gender);



</script>
</body>
</html>